﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Contract.Data {

	[DataContract(Namespace = "http://DotNetChat.server.com")]
	public class ChatMessage  {
		[DataMember]
		public string Message { get; set; }
		[DataMember]
		public DateTime? TimeStamp { get; set; }

		[DataMember(IsRequired = true)]
		public ChatMember CreatedBy { get; set; }

		[DataMember(IsRequired = false)]
		public Guid MessageId { get; set; }

	}
}
